mail = yagmail.SMTP(user='1006142636@qq.com', password='mduzpggkpknubgac', host='smtp.qq.com')
# 发送邮件
mail.send(to='1006142636@qq.com', subject='孔夫子测试报告', contents='今日报告,请查看', attachments='filepath')